package com.suo.enroll.entry;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;

import java.time.LocalDateTime;

@TableName("enroll") // 对应数据库中的表名
public class User {

    @TableId // 主键字段
    private Integer id;

    private String university;  // 报考号

    private String subject;     // 本科报考专业

    private String qq;            // QQ

    private String url;         // 准考证URL

    private String time;

    @TableField(value = "isOK")
    private Boolean isOK;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    public User() {
    }

    public User(Integer id, String university, String subject, String qq, String url) {
        this.id = id;
        this.university = university;
        this.subject = subject;
        this.qq = qq;
        this.url = url;
        this.isOK = false;
        this.createTime = LocalDateTime.now();
        this.updateTime = LocalDateTime.now();
    }

    public User(Integer id, String university, String subject, String qq, String url, String time) {
        this.id = id;
        this.university = university;
        this.subject = subject;
        this.qq = qq;
        this.url = url;
        this.time = time;
        this.createTime = LocalDateTime.now();
        this.updateTime = LocalDateTime.now();
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Boolean getOK() {
        return isOK;
    }

    public void setOK(Boolean OK) {
        isOK = OK;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUniversity() {
        return university;
    }

    public void setUniversity(String university) {
        this.university = university;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}